/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bean;

import java.util.Objects;

/**
 *
 * @author Eletro Shopping
 */
public class SellItem implements java.io.Serializable{
    
    private static final long serialVersionUID = 1L;
    
    private Integer id;
    private Product product;
    private Sell sell;
    private int qnt;
    private float totalOfIitem;

    public SellItem() {
    }

    public SellItem(Integer id) {
        this.id = id;
    }

    public SellItem(Integer id, Product product, Sell sell, int qtn, float totalOfIitem) {
        this.id = id;
        this.product = product;
        this.sell = sell;
        this.qnt = qnt;
        this.totalOfIitem = totalOfIitem;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Product getProduct() {
        return product;
    }

    public void setProduct(Product product) {
        this.product = product;
    }

    public int getQtn() {
        return qnt;
    }

    public void setQtn(int qtn) {
        this.qnt = qtn;
    }

    public Sell getSell() {
        return sell;
    }

    public void setSell(Sell sell) {
        this.sell = sell;
    }

    public float getTotalOfIitem() {
        return totalOfIitem;
    }

    public void setTotalOfIitem(float totalOfIitem) {
        this.totalOfIitem = totalOfIitem;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final SellItem other = (SellItem) obj;
        if (!Objects.equals(this.id, other.id)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 17 * hash + Objects.hashCode(this.id);
        return hash;
    }
    
    
}
